package com.czn.shopdemo.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;
import java.util.List;

/**
 * @author Zenan Chen
 * @date 2023/4/4 17:37
 */
@Data
@TableName(value = "t_shop_demo_order")
@EqualsAndHashCode(callSuper = false)
public class Order extends BaseEntity {

    @ApiModelProperty(value = "用户id", example = "5", hidden = true)
    @TableField("user_id")
    private String userId;

    @ApiModelProperty(value = "订单状态", example = "2")
    @TableField("order_status")
    private Integer orderStatus;

    @TableField(exist = false)
    private List<OrderItem> orderItemList;

}
